﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
	CodeBehind="@ClassName@Info.aspx.cs" Inherits="@ProjectName@.Web.@ClassName@Info" %>

<%@ Register Assembly="Deeper.Controls" Namespace="Deeper.Controls" TagPrefix="Deeper" %>
<%@ Import Namespace="Deeper.Common" %>
<%@ Import Namespace="Deeper.Common.Web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="subnav">
		<h2 class="title-1 line-x f14 fb  green lh28">
			@ClassSummary@管理</h2>
	</div>
	<Deeper:CrudForm runat="server" ID="pnlDetail" Title="@ClassSummary@" OnSaveEvent="ModelSave"
		OnAddItem="ModelAdd">
		<asp:HiddenField runat="server" ID="hf@Pid@" />
		<table width="100%" class="table_form  contentWrap">
			@NoPrimaryFieldsForeach@
			<tr>
				<td align="right" class="w_200">
					@CRemake@ :
				</td>
				<td>
					<asp:TextBox runat="server" ID="txt@CName@" CssClass="input-text  validate[required]"></asp:TextBox>
					<span class="red">*</span>
				</td>
			</tr>
			@NoPrimaryEndField@
		</table>
	</Deeper:CrudForm>
	<div>
		<Deeper:PagedReapter ID="rptList" runat="server" OnItemCommand="rptList_Command"
			OnBindData="MyDataBind">
			<headertemplate>
        <table class="table-list">
            <thead>
                <tr>
                    <th>序号</th>
                    @NoPrimaryFieldsForeach@
                    <th>@CRemake@</th>
                    @NoPrimaryEndField@
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
				</headertemplate>
			<footertemplate>
				</tbody> </table>
			</footertemplate>
			<itemtemplate>
                
                        <tr>
                            <td>
                                <%# (rptList.PageIndex - 1) * rptList.PageSize + Container.ItemIndex + 1%>
                            </td>
                            @NoPrimaryFieldsForeach@
                            <td>
                                <%# Eval("@CName@") %>
                            </td>
                            @NoPrimaryEndField@
                            <td>
                                <asp:Button runat="server" ID="btnDelete" Text="删除" CssClass="btnDelete button icon_delete" CommandName="delete"
                                    CommandArgument='<%# Eval("@Pid@") %>' />
                                <asp:Button runat="server" ID="btnEdit" Text="编辑" CssClass="button icon_edit" CommandName="edit"
                                    CommandArgument='<%# Eval("@Pid@") %>' />
                            </td>
                        </tr>
                    </itemtemplate>
		</Deeper:PagedReapter>
	</div>
</asp:Content>
